//
//  KLSlidingPicker.h
//  KeyLime
//
//  Created by Jesse Curry on 10/27/09.
//  Copyright 2009 Circonda, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KLSlidingViewController.h"

@interface KLSlidingPickerRowSelection : NSObject
{
	NSInteger	row;
	NSInteger	component;
}
@property (nonatomic, assign) NSInteger	row;
@property (nonatomic, assign) NSInteger component;
+ (KLSlidingPickerRowSelection*)rowSelectionWithRow: (NSInteger)row 
										  component: (NSInteger)component;
@end

////////////////////////////////////////////////////////////////////////////////////////////////////
@interface KLSlidingPicker : KLSlidingViewController 
{
	IBOutlet UIPickerView*		picker;
	IBOutlet UIBarButtonItem*	doneButton;
	
	id<UIPickerViewDataSource>	pickerDataSource;
	id<UIPickerViewDelegate>	pickerDelegate;
	
	NSMutableArray*				rowSelections;
}
@property (nonatomic, assign)	id<UIPickerViewDataSource> pickerDataSource;
@property (nonatomic, assign)	id<UIPickerViewDelegate> pickerDelegate;
@property (nonatomic, assign)	BOOL pickerShowsSelectionIndicator;
@property (nonatomic, readonly)	NSString*	text;

- (NSInteger)selectedRowInComponent: (NSInteger)theComponent;
- (void)selectRow: (NSInteger)row inComponent: (NSInteger)component animated: (BOOL)animated;
@end
